package com.slipper.system.schedule.bo;

import com.slipper.common.bo.CommonBO;

/**
 * 任务调度日志
 */
public class ScheduleLogBO extends CommonBO {
    public static final String STATUS_RUNNING = "执行中";
    public static final String STATUS_SUCCESS = "执行成功";
    public static final String STATUS_FAILURE = "执行失败";
    
    /* 主键ID */
    private String id;
    /* 主键ID */
    private String[] ids;
    /* 任务ID */
    private String taskId;
    private String type;
    private String period;
    private String time;
    private String expression;
    private String businessType;
    private String businessId;
    private String businessName;
    private String params;
    /* 状态：
            0、执行中
            1、执行成功
            2、执行失败 */
    private String status;
    /* 开始时间 */
    private Long startTime;
    /* 结束时间 */
    private Long endTime;
    /* 失败信息 */
    private String errorMessage;
    /* 耗时 */
    private Long timeConsume;
    /* 创建时间 */
    private Long createTime;

    public void setId(String id) {
        this.id = id;
    }
    
    public String getId() {
        return id;
    }
    
    public void setIds(String[] ids) {
        this.ids = ids;
    }
    
    public String[] getIds() {
        return ids;
    }
    
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }
    
    public String getTaskId() {
        return taskId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        this.period = period;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getBusinessName() {
        return businessName;
    }

    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    public void setParams(String params) {
        this.params = params;
    }
    
    public String getParams() {
        return params;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    public String getStatus() {
        return status;
    }
    
    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }
    
    public Long getStartTime() {
        return startTime;
    }
    
    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }
    
    public Long getEndTime() {
        return endTime;
    }
    
    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
    
    public String getErrorMessage() {
        return errorMessage;
    }
    
    public void setTimeConsume(Long timeConsume) {
        this.timeConsume = timeConsume;
    }
    
    public Long getTimeConsume() {
        return timeConsume;
    }
    
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
    
    public Long getCreateTime() {
        return createTime;
    }
    
}
